package homework;

import java.util.Scanner;

public class Play {
    public void process(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("猜拳游戏开始");
        System.out.println("请输入名字：");
        Judge judge = new Judge(new Player(scanner.next()),new Computer());
        for (int i = 0;i < 10;i++){
            System.out.println("第" + (i + 1) + "局");
            judge.check();
        }
        judge.Fjudge();
    }

    public static void main(String[] args) {
        new Play().process();
    }
}
